<!-- 注意id属性每个页面id必须独立 lay-title为当前页面的标题属性-->
<div class="layui-fluid" id="hr-trainningBatch-detail" lay-title="院校信息">
    <form class="layui-form" action="" lay-filter="hr-trainningBatch-detail-form">
        <div class="layui-form-item">
            <label class="layui-form-label">批次名称</label>
            <div class="layui-input-block">
                <input type="text" name="trainningName" minlength="2" maxlength="20" disabled="true"
                       autocomplete="off" class="layui-input repetitive">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">创建用户</label>
            <div class="layui-input-block">
                <input type="text" name="userName" minlength="2" maxlength="20" disabled="true"
                       autocomplete="off" class="layui-input repetitive">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">创建日期</label>
            <div class="layui-input-block">
                <input type="text" name="createDateTime" minlength="2" maxlength="20" disabled="true"
                       autocomplete="off" class="layui-input repetitive">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">状态</label>
            <div class="layui-input-block">
                <input type="text" name="trainningStatusName" minlength="2" maxlength="20" disabled="true"
                       autocomplete="off" class="layui-input repetitive">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">修改用户</label>
            <div class="layui-input-block">
                <input type="text" name="updateUserName" minlength="2" maxlength="20" disabled="true"
                       autocomplete="off" class="layui-input repetitive">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">最后修改时间</label>
            <div class="layui-input-block">
                <input type="text" name="updateDateTime" minlength="2" maxlength="20" disabled="true"
                       autocomplete="off" class="layui-input repetitive">
            </div>
        </div>
        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">备注</label>
            <div class="layui-input-block">
                <textarea name="remark" maxlength="200" class="layui-textarea" disabled="true"></textarea>
            </div>
        </div>
    </form>
</div>

<script data-th-inline="javascript">
    layui.use(['febs', 'form', 'validate'], function () {
        let $ = layui.$,
            febs = layui.febs,
            layer = layui.layer,
            form = layui.form,
            // 获得后台出入的实体对象
            trainningBatch = [[${trainningBatch}]]
            // 验证
            validate = layui.validate;
        // 表单验证
        form.verify(validate);
        // 表单渲染
        form.render();
        // 初始化页面数据
        initCollegeValue();

        function initCollegeValue() {

            form.val("hr-trainningBatch-detail-form", {
                "trainningName": trainningBatch.trainningName,
                "remark": trainningBatch.remark,
                "userName": trainningBatch.userName,
                "createDateTime": trainningBatch.createDate,
                "trainningStatusName": trainningBatch.trainningStatusName,
                "updateUserName": trainningBatch.updateUserName,
                "updateDateTime": trainningBatch.lastModifyDate,
            });
        }
    })

</script>